from flask import Flask
from config import Config

app = Flask(__name__)
# 跨域配制
from flask_cors import CORS

CORS(app)
# 加载配制文件
app.config.from_object(Config)

# 注册分类蓝图
from cate import bp_cate

app.register_blueprint(bp_cate)
# 注册商品蓝图
from good import bp_goods

app.register_blueprint(bp_goods)

# 注册用户蓝图
from user import bp_user

app.register_blueprint(bp_user)

# 注册文章蓝图
from acticle import bp_auser

app.register_blueprint(bp_auser, url_prefix='/auser')

if __name__ == "__main__":
    app.run()
